Skip to content

fix: extended UDP broadcast to reach physical devices outside the virtual Docker network#143

Open
ChemistryTobias wants to merge 1 commit intoChannelFinder:masterfrom
ChemistryTobias:master
Open

fix: extended UDP broadcast to reach physical devices outside the virtual Docker network#143
ChemistryTobias wants to merge 1 commit intoChannelFinder:masterfrom
ChemistryTobias:master

Conversation

@ChemistryTobias
Copy link
Copy Markdown

Issue

I installed the RecCeiver service as follows:

mkdir -p $HOME/EPICS/docker/RecCeiver
cd $HOME/EPICS/docker/RecCeiver
git clone https://github.com/ChannelFinder/recsync.git
cd recsync/server
docker compose up -d

But with the current Docker compose.yml implementation, the UDP broadcast is confined to the virtual Docker network and only find IOCs within it.

Fix

If this is not the intended standard behavior of your Docker compose, I want to offer a few minor changes, I used in our setup.

Otherwise, just keep up with your project, really like it ✌️

@sonarqubecloud
Copy link
Copy Markdown

Comment thread server/compose.yml
restart: true
healthcheck:
test: netstat | grep cf
test: curl -s -f http://localhost:8080/ChannelFinder
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This tests channelfinder is up, not recceiver.

Comment thread server/compose.yml
RECCEIVER_CF_CFUSERNAME: admin
RECCEIVER_CF_CFPASSWORD: password
RECCEIVER_CF_BASEURL: http://cf:8080/ChannelFinder
RECCEIVER_CF_BASEURL: http://localhost:8080/ChannelFinder
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks the integration tests which have "cf" as the hostname for channelfinder.

Comment thread server/compose.yml
- net-1-recc-1
- net-2-cf
network_mode: host

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this. This will.mean container IOC's won't have access to recceiver here?

As mentioned before this will break the integration tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants